import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
export default new Router({
    // eslint-disable-next-line no-unused-vars
    srcollBehavior(to, from, savedPosition) {
        if (to.hash) {
            return {selector: to.hash}
        }
    },
    routes: [{
        path: '/login',
        name: 'login',
        component: () => import('@/views/login')
    }, {
        path: '/',
        name: 'index',
        component: () => import('@/views/index')
    }, {
        path: '/index',
        name: 'index',
        component: () => import('@/views/index')
    }, {
        path: '/forum',
        name: 'forum',
        component: () => import('@/views/forum')
    }, {
        path: '/forum-details',
        name: 'forumDetails',
        component: () => import('@/views/forum-details')
    }, {
        path: '/remark',
        name: 'remark',
        component: () => import('@/components/remark-list')
    }]
})
